package org.sjs.dreamfly.player

import androidx.lifecycle.ViewModel
import org.sjs.dreamfly.model.VideoInfo
import org.sjs.dreamfly.common.util.LogUtil

@Deprecated("被取代")
private class PlayerViewModel : ViewModel() {

    private var playList : List<VideoInfo>? = null
    fun loadPlayList() {
//        playList = DataCenter.getDataProvider(SiteDataProvider::class.java)?.getPlayList()
    }

    fun getPlayList(): List<VideoInfo>? {
        return playList
    }

    fun hasPlayList(): Boolean {
        return playList != null && playList!!.isNotEmpty()
    }

    fun playVideo(videoInfo: VideoInfo?) {
        LogUtil.d(videoInfo.toString())
    }
}